package com.gitee.zhanyao.codebase.java.mybatisplus.service.impl;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gitee.zhanyao.codebase.java.mybatisplus.entity.SysAttachment;
import com.gitee.zhanyao.codebase.java.mybatisplus.mapper.SysAttachmentMapper;
import com.gitee.zhanyao.codebase.java.mybatisplus.service.ISysAttachmentService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author zhanyao
 * @since 2021-06-02
 */
@Service
public class SysAttachmentServiceImpl extends ServiceImpl<SysAttachmentMapper, SysAttachment> implements ISysAttachmentService {

    @Override
    public void testUpdate() {
        update(new UpdateWrapper<SysAttachment>().lambda()
                .set(SysAttachment::getDataKey, "111111111111")
                .eq(SysAttachment::getAttachmentId, "7f019f32-e886-4e2c-a63c-aa5c57fa5097"));
    }

}
